using StrategyPattern;
using System;
using Xunit;

namespace StrategyPatternTestProject
{
    public class UnitTest1
    {
     
        
        [Theory]
        [InlineData(1,2)]
        public void AddTest1(int num,int num1)
        {
            ICalculate calculate = new Add();
            double result =  calculate.Sum(num,num1);
            Assert.Equal(3, result);  
        } 
        [Theory]
        [InlineData(1, 2)]
        public void DivisionTest1(int num, int num1)
        {
            ICalculate calculate1 = new Division();
            double result1 = calculate1.Sum(num, num1);
            Assert.Equal(0.5, result1);
        } 
        [Theory]
        [InlineData(1, 2)]
        public void MultiplicationTest1(int num, int num1)
        {
            ICalculate calculate2 = new Multiplication();
            double result2 = calculate2.Sum(num, num1);
            Assert.Equal(2, result2);
        }  
        [Theory]
        [InlineData(1, 2)]
        public void SubtractionTest1(int num, int num1)
        {
            ICalculate calculate3 = new Subtraction();
            double result3 = calculate3.Sum(num, num1);
            Assert.Equal(-1, result3);
        }  
    }
}
